package com.example.demo.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.dto.FoodDto;
import com.example.demo.entity.Food;
import com.example.demo.entity.Foodtvrelation;

/**
* @author Atanycosts
* @description 针对表【foodTVRelation】的数据库操作Service
* @createDate 2023-04-11 19:03:34
*/
public interface FoodtvrelationService extends IService<Foodtvrelation> {

    //删除帖子
    void deleteFoodTVRelation(Long id);

    //新增方案
    public void saveFood(FoodDto foodDto);

    //修改更新方案
    public void updateFood(FoodDto foodDto);

    //根据ID查询方案信息和对应的食物信息
    public FoodDto getByIdFood(Long id);

    //分页查询或者根据名称查询方案信息和对应的食物信息
    public Page<Food> getAllFood(int page, int pageSize, String planName);

}
